Upload a ZIP with tags and annotations
Images labeled somewhere else, by another tool or by a script, do not need to be labeled again: put a text file next to each image with its boxes, pack them in a ZIP and upload it. The platform reads the files and the images arrive labeled. In this guide five packs of biscuits arrive with a box around every biscuit.
What you will learn
- How to arrange a ZIP for each type of dataset
- How to write an annotation file with boxes
- How to check that the annotations arrived
Before you start
You need a dataset of the right type for your annotations, here object detection. Uploading in general is explained in Upload images to a dataset.
1. Open the upload tab
Open the dataset and go to the «Upload» tab. The card on the right explains how a ZIP must be arranged for the type of this dataset, with an example.

2. Prepare the ZIP
For object detection, put the images in the ZIP and, next to each one, a text file with the same name and the extension .txt. Each line of the file is one box: the tag, then the top-left and the bottom-right corners, as fractions of the width and the height of the image, from 0 to 1:
biscuits_boxes.zip
├── biscuits_001.jpg
├── biscuits_001.txt
├── biscuits_003.jpg
├── biscuits_003.txt
└── …2
3
4
5
6
biscuit 0.1761 0.1097 0.3267 0.8688
biscuit 0.3267 0.1247 0.5 0.8731
biscuit 0.5 0.1226 0.6506 0.8731
biscuit 0.6506 0.1247 0.821 0.86242
3
4
Tags that the dataset does not have yet are created.

3. Select the ZIP
Click «Select Files» and choose the ZIP. Before uploading, the platform opens it and counts the images and the annotation files it found. If it says 0 annotation files, check that each file has the same name as its image.

4. Upload it
Click «Upload». The summary counts the images uploaded; the boxes travel with them.

5. See the images
Click «Labeling». The counts on the right say that the five images are «Labeled» and «Reviewed»: they arrived with their boxes. The tags an upload creates show once the grid is reloaded: open the menu next to the name of the dataset and click «Reload», or the editor will say the dataset has no tags.

6. Check the boxes
Open an image. The boxes of its text file are there, each with its tag, and listed in «Labels». Images that arrive with annotations count as reviewed.

The ZIP for each type of dataset
| Dataset type | How the ZIP is arranged |
|---|---|
| Classification | One folder per tag, named after it, with its images. Images in the root, or in a folder called 0, arrive «Unclassified». |
| Object detection, oriented boxes, text recognition | All the images in the root, with an annotation file each, or one CSV file for all. Folders are ignored. |
| Image segmentation | A folder called OK for the normal images; any other image is uploaded as an anomaly. The masks go in one JSON file per image, with the image's name. |
| Anomaly detection | Folders are ignored: an image becomes an anomaly when a JSON file with its mask comes with it. |
The annotation files
- TXT, one per image: one line per box,
tag x1 y1 x2 y2, the corners from 0 to 1. A line with only a tag gives the image that tag without a box. - CSV, one for all the images: one line per box,
image,tag,x1,y1,,,x2,y2, the layout of Google AutoML. For oriented boxes, the four corners:image,tag,x1,y1,x2,y2,x3,y3,x4,y4. For text recognition, the text goes in the place of the tag. - JSON, one per image: the shapes of a segmentation or anomaly dataset.
Boxes in pixels, or in the YOLO and COCO formats, are not read: convert them to corners from 0 to 1 first. An image with the same name as one already in the dataset is not uploaded again, but its annotations replace the old ones.
Next steps
Recorded on Rosepetal release 1.8.15.